#ifndef __USART_H
#define __USART_H
#include "stdio.h"
#include "sys.h"
#define USART_REC_LEN 200
#define EN_USART1_RX  1
#define USART_DEBUG   USART1
extern u8  USART_RX_BUF[USART_REC_LEN];
extern u16 USART_RX_STA;

void uart_init(u32 bound);
void Usart2_Init(unsigned int baud);
void UsartPrintf(USART_TypeDef *USARTx, char *fmt, ...);
void Usart_SendString(USART_TypeDef *USARTx, unsigned char *str, unsigned short len);
#endif
